home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Excite PAL 2.xpl < prev    next >
Text File  |  1999-09-22  |  2KB  |  95 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Internet\Instant Messaging\Excite PAL"
  5. "NAME"="General Settings"
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.08"
  8. "TEXT 1"="Automatically load Excite PAL when Windows is started"
  9. "TEXT 2"="Show only friends that are online (hide offline friends)"
  10. "TEXT 3"="Play sound when a message is received"
  11. "TEXT 4"="Play sound when a contact comes online"
  12. "DESCRIPTION 1"="You can use this plug-in to change the options for Excite PAL."
  13. "DESCRIPTION 2"="Excite PAL may be obtained at http://www.excite.com/communities/pal/home/."
  14. "AUTHOR"="Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  17. "COMMENT 2"="Thanks to CptSiskoX for the settings and the idea."
  18.  
  19.  
  20. sV_Reg="HKEY_LOCAL_MACHINE\Software\Ubique\PAL\Path"
  21. sSec="Settings"
  22. sFile="pal.ini"
  23. sPath=""
  24. sV1="LaunchAtStartup"
  25. sV2="ShowOnlineOnly"
  26. sV3="BeepIM"
  27. sV4="BeepBuddy"
  28. Sub Plugin_Initialize 
  29.  sPath=RegReadValue(sV_Reg)
  30.  if isempty(sPath)=false then
  31.     sPath=sPath & "\" & sFile
  32.  
  33.     if fileexists(sPAth) then
  34.        s=IniReadValue(sPath,sSec,sV1)
  35.        if s="1" then SetUIElement 1,true
  36.  
  37.        s=IniReadValue(sPath,sSec,sV2)
  38.        if s="1" then SetUIElement 2,true
  39.  
  40.        s=IniReadValue(sPath,sSec,sV3)
  41.        if s="1" then SetUIElement 3,true
  42.  
  43.        s=IniReadValue(sPath,sSec,sV4)
  44.        if s="1" then SetUIElement 4,true
  45.     else
  46.        Disable
  47.     end if
  48.  else
  49.     Disable
  50.  end if
  51. End Sub
  52.  
  53.  
  54. Sub Plugin_CheckData(ElementIndex)
  55. End Sub
  56.  
  57.  
  58. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  59.  if GetUIElement(1)=true then
  60.     s="1"
  61.  else
  62.     s="0"
  63.  end if
  64.  Call IniWriteValue(sPath,sSec,sV1,s)
  65.  
  66.  if GetUIElement(2)=true then
  67.     s="1"
  68.  else
  69.     s="0"
  70.  end if
  71.  Call IniWriteValue(sPath,sSec,sV2,s)
  72.  
  73.  if GetUIElement(3)=true then
  74.     s="1"
  75.  else
  76.     s="0"
  77.  end if
  78.  Call IniWriteValue(sPath,sSec,sV3,s)
  79.  
  80.  if GetUIElement(4)=true then
  81.     s="1"
  82.  else
  83.     s="0"
  84.  end if
  85.  Call IniWriteValue(sPath,sSec,sV4,s)
  86.  
  87. End Sub
  88.  
  89.  
  90. Sub Plugin_Terminate 
  91. End Sub
  92.  
  93.  
  94.  
  95.